//
// Created by Wonderful on 2025/9/18.
//

#ifndef C___LEARN_CIRCLE_H
#define C___LEARN_CIRCLE_H

#include <string>
#include <stdlib.h>

namespace MyGraph {

    class Graph {
    public:
        Graph(int x, int y) : x(x), y(y) {}

        float Distance(const Graph * other);

    protected:
        int x, y;
    public:
        std::string virtual ToString();
    };

    class Circle : Graph {
    public:
        Circle(int x, int y, int r) : Graph(x, y), r(r) {}

        bool IsIntersect(const Circle * other);
        std::string virtual ToString();
    private:
        int r;
    };

}
#endif //C___LEARN_CIRCLE_H
